<?php

namespace app\frontend\controller;

use app\admin\model\Caser;
use think\Controller;
use think\Db;


class Partner extends Controller
{
    public function design()
    {
        $case = new Caser();
        $casies = $case->table('d_partner');
        $cases = $casies->where('type', 2)->paginate(100);

        $this->assign('cases', $cases);

        echo $this->fetch();
    }

    public function manufacture()
    {
        $case = new Caser();
        $casies = $case->table('d_partner');
        $cases = $casies->where('type', 1)->paginate(100);

        $this->assign('cases', $cases);

        echo $this->fetch();
    }
}